package com.tsing.wms.vo.resp;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

/**
 * @author TheTsing
 * @create 2022-04-13 22:02
 */
@Data
public class OrderRespVO {

    private String id;

    @ApiModelProperty("供应商id")
    private String supplierId;

    @ApiModelProperty("下单人员id")
    private String userId;

    @ApiModelProperty("订单状态 1 已下单  2 已发货  3 已接收  4 已入库")
    private Integer status;

    @ApiModelProperty("描述")
    private String description;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date updateTime;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("电话")
    private String phone;

    @ApiModelProperty("供应商")
    private String supplierName;

    private String supplierPhone;

    @ApiModelProperty("货物种类")
    private Long goodsTypeCount;

    @ApiModelProperty("货物总数")
    private Long goodsCount;

    @ApiModelProperty("订单清单")
    private List<OrderDetailRespVO> orderDetails;

    @Data
    public static class OrderDetailRespVO {

        @ApiModelProperty("货物id")
        private String goodsId;

        @ApiModelProperty("货物名称")
        private String goodsName;

        @ApiModelProperty("数量")
        private Integer amount;

        @ApiModelProperty("规格")
        private String specs;

        private BigDecimal price;

    }


}
